use compare_int::compare_int::{int_compare, int_equal};

#[test]
fn test_int_compare() {
    let a = 4;
    let b = 8;
    let c = 4;

    // If first is less than second, result is negative
    assert!(int_compare(&a, &b) < 0);

    // If first is more than second, result is positive
    assert!(int_compare(&b, &a) > 0);

    // If both are equal, result is zero
    assert_eq!(int_compare(&a, &c), 0);
}

#[test]
fn test_int_equal() {
    let a = 4;
    let b = 8;
    let c = 4;

    // Returns true if both are equal
    assert!(int_equal(&a, &c));

    // Returns false if not equal
    assert!(!int_equal(&a, &b));
}